<a [routerLink]="['/home']">主页</a>

<!--<a [routerLink]="['/product']" [queryParams] = "{id:1}">商品,方式一</a>-->

<a [routerLink]="['/product',1]">商品,方式二</a>
<button (click)="toDetailPage()">商品详情</button>
<router-outlet></router-outlet>
